package com.tiger.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.HashMap;
import java.util.List;

@Data
@TableName(value = "dept_contacts", autoResultMap = true)
public class DeptContacts {
    @TableId(type = IdType.AUTO)
    private Long id; // 自增主键

    private String dept;

    @TableField(value = "depts", typeHandler = JacksonTypeHandler.class)
    private List<HashMap<String, Object>> depts;
}